package org.footballmanager.pandafootball.system.form;

import lombok.Getter;
import lombok.Setter;
import tk.mybatis.mapper.entity.Example;

import java.io.Serializable;

@Setter
@Getter
public abstract class SearchForm implements Serializable {
    private static final long serialVersionUID = 8090668615941861521L;
    protected String selectIds;
	protected int pageSize=10;
    protected int pageIndex=1;
    protected int offset = 0;
    protected Example example;

    /**
     * 构造实例
     * @return 返回值
     */
    public abstract Example buildSearchCommond();

    public int getOffset(){
        return (pageIndex - 1) * pageSize;
    }
}
